package demo.bean;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


@Component
public class MyCommandLineRunner implements CommandLineRunner{
	
	public MyCommandLineRunner(){
		System.out.println("MyCommandLineRunner() run,"+LocalDateTime.now());
	}
	
	@Override
	public void run(String... args) throws Exception{
		List<String>  arglist = Arrays.asList(args);
		System.out.println("MyCommandLineRunner.run() run,"+LocalDateTime.now());
	}

}